import pytest
import sys


# def add(a, b):
#     return a + b
#
#
# @pytest.mark.parametrize("a,b,expected", [
#     pytest.param(1, 2, 3, id="add_1_2_3", marks=pytest.mark.smoke),
#     pytest.param(2, 3, 8, id="add_2_3_8", marks=pytest.mark.xfail(reason="Incorrect expected result")),
#     pytest.param(3, 5, 8, id="add_3_5_8",
#                  marks=pytest.mark.skipif(condition=sys.version_info < (3, 8), reason="Requires Python 3.8+")),
# ])
# def test_add(a, b, expected):
#     assert add(a, b) == expected


@pytest.mark.parametrize("test_input,expected", [
    pytest.param("3+5", 8),
    pytest.param("6*9", 42, marks=pytest.mark.xfail),
])
def test_eval(test_input, expected):
    assert eval(test_input) == expected